from django.urls import re_path

from lab.message.views import MessageViewSet

urlpatterns = [
    re_path(r'^labs/message/(?P<user_id>\d+)/(?P<is_read>\d+)', MessageViewSet.as_view({'get': 'list'}),
            name='获取所有消息'),
    re_path(r'^labs/message/update/(?P<user_id>\d+)/(?P<message_id>\d+)', MessageViewSet.as_view({'put': 'update'}),
            name='更新是否已读'),
]
